package com.example.demo.config;

import com.example.demo.model.Doctor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Configuration
@Component
@ConfigurationProperties(prefix = "doctors")
public class DoctorConfig {

    private String message;
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }

    private Map<String, Doctor> members = new HashMap<>();

    public Map<String, Doctor> getMembers() {
        return members;
    }

    public void setMembers(Map<String, Doctor> doctors) {
        this.members = doctors;
    }


}
